//This trigger is to call the Webservice for insert and update into Contact Address
trigger HF_ContactAddressSync on Contact_Address__c (after Insert, after Update) {
Set<Id> addId = new Set<ID>();

    for(Contact_Address__c a:Trigger.new){
        addId.add(a.Id);
    }
    system.debug('**********'+addId);
    If(addId!= null && addId.size()>0)
        if(trigger.isInsert&&trigger.IsAfter)
        {
            HF_ClientWSContactaddr.AddContactAddress(addId);
        }
        if(trigger.isUpdate&&trigger.IsAfter)
        {
             HF_ClientWSContactaddr.UpdateContactAddress(addId);
        }
 }